package com.ecdc.soexample;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.GridView;

import androidx.annotation.Nullable;
import androidx.viewpager.widget.ViewPager;

//import com.ecdc.touchelx.R;

//import com.ecdc.touchelxcdds.R;

import com.deep_tools.ecdc.R;
import java.util.ArrayList;
import java.util.List;

import adapter.DateAdapter;
import adapter.DatePagerAdapter2;
import adapter.DatePagerAdapter3;
import transformer.GalleryTransformer;

public class TestActivity extends Activity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.view_date);
        ViewPager timeViewPager_activity_healthy_body=findViewById(R.id.viewpager);
        timeViewPager_activity_healthy_body.setPageTransformer(true, new GalleryTransformer());

        DatePagerAdapter3 adapter=new DatePagerAdapter3(this);
        timeViewPager_activity_healthy_body.setAdapter(adapter);
        timeViewPager_activity_healthy_body.setCurrentItem(Integer.MAX_VALUE-1,false);
        timeViewPager_activity_healthy_body.setOnPageChangeListener(new ViewPager.OnPageChangeListener() {
            @Override
            public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {

            }

            @Override
            public void onPageSelected(int position) {


            }

            @Override
            public void onPageScrollStateChanged(int state) {

            }
        });

    }
}
